<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>哈夫曼测试</title>
</head>
<body>
<h4>请按照指导进行</h4>

{{ success }}
{{ node }}
<h2>哈夫曼压缩</h2>
<div class="row">
      <div class="col-md-8 col-md-offset-2">
          <form class="form-inline" role="form" action="upload"  method="post" enctype="multipart/form-data" accept-charset="utf-8">
              {% csrf_token %}
              <div class="form-group">
                  <input type="file" name="file">
              </div>
              <div class="form-group">
                  <input type="submit" value="上传文件">
              </div>
          </form>
      </div>
  </div>
<br>
<h2>哈夫曼解压缩</h2>
<div class="row">
      <div class="col-md-8 col-md-offset-2">
          <form class="form-inline" role="form" action="download"  method="post" enctype="multipart/form-data" accept-charset="utf-8">
              {% csrf_token %}
              <div class="form-group">
                  密码表：<input type="file" name="code_table">
              </div>
              <div class="form-group">
                  压缩文件：<input type="file" name="code_file">
              </div>
              <div class="form-group">
                  <input type="submit" value="上传文件">
              </div>
          </form>
      </div>
  </div>
</body>
</html>